package com.qlc_demo_api.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 扩展token
 */
public class JWTToken implements AuthenticationToken {

    private String etoken;

    public JWTToken(String etoken) {
        this.etoken = etoken;
    }

    @Override
    public Object getPrincipal() {
        return etoken;
    }

    @Override
    public Object getCredentials() {
        return etoken;
    }
}
